package com.example.clocks;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        intiView();
    }
    private void intiView(){
        ImageView shiImage=findViewById(R.id.shi_time);
        ImageView fenImage=findViewById(R.id.fen_time);
        ImageView miaoImage=findViewById(R.id.miao_time);
        shiImage.setAnimation(AnimationUtils.loadAnimation(this,R.anim.anim_time));
        fenImage.setAnimation(AnimationUtils.loadAnimation(this,R.anim.anim_fen_time));
        miaoImage.setAnimation(AnimationUtils.loadAnimation(this,R.anim.anim_miao_time));
    }
}